package com.hongkzh.www.look.media.view.activity;

import android.os.Bundle;
import android.support.v7.widget.RecyclerView;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;

import com.hongkzh.www.R;
import com.hongkzh.www.view.activity.BaseActivity;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by as on 2018/4/16.
 * 城市搜索页面
 */

public class CitySearchActivity extends BaseActivity implements View.OnClickListener {

    @BindView(R.id.et_search)
    EditText etSearch;
    @BindView(R.id.iv_search)
    ImageView ivSearch;
    @BindView(R.id.iv_cancel)
    ImageView ivCancel;
    @BindView(R.id.rv_search_City)
    RecyclerView rvSearchCity;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ButterKnife.bind(this);
        setTranslucent(R.color.color_D8D8D8);
    }


    @Override
    protected int getLayoutId() {
        return R.layout.layout_search_city;
    }

    @Override
    protected void init() {

    }

    private TextWatcher editClick=new TextWatcher() {
        @Override
        public void beforeTextChanged(CharSequence s, int start, int count, int after) {

        }

        @Override
        public void onTextChanged(CharSequence s, int start, int before, int count) {

        }

        @Override
        public void afterTextChanged(Editable s) {
            String mSearchCon=etSearch.getText().toString();
            //TODO:搜索本地现有的地区城市
        }
    };


    @Override
    protected void setListener() {

    }


    @Override
    public void onClick(View v) {


    }

    @Override
    public void onError(Exception e) {

    }

}
